package com.vitae.controller;

import com.vitae.service._BaseService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ouyu on 2018/5/15.
 */
public interface _BaseController<T,ID extends Serializable> {
    _BaseService<T,ID> baseService();
/*
    @GetMapping("findAll")
    @ResponseBody
    default List<T> findAll(){
        return baseService().findAll();
    }
    @GetMapping("getOne")
    @ResponseBody
    default  T getOne(ID id){
        return baseService().getOne(id);
    }*/
}
